<div class="ui attached segment m-padded-tb-large">
    {#    <div class="ui labeled button m-margin-tb-tiny">#}
    {#        <a href="#" class="ui basic teal button">思考与感悟</a>#}
    {#        <div class="ui basic teal left pointing label">24</div>#}
    {#    </div>#}
    {% for type in type_list %}
        <div class="ui labeled button m-margin-tb-tiny">
            <a href="{% url 'blog:type_detail' type.id %}"
               class="ui basic button">
                {{ type.name }}
            </a>
            <div class="ui basic left pointing label ">{{ type.num_posts }}</div>
        </div>
    {% endfor %}
</div>